package com.xwf.study.spring;

import com.xwf.study.spring.beans.X;
import com.xwf.study.spring.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.DependsOn;

/**
 * @author 许伟峰
 * @date 2020/9/3 16:07
 */
public class MainTest {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		X x = (X) context.getBean("x");
		x.helloWorld();
	}
}
